<?php echo $header; ?>


	<!-- TOP SLIDE -->
	<div id="ja-topsl" class="wrap">
		<div class="main clearfix">	
		<div class="ja-rs1-top">
			<div class="ja-rs1-tl">&nbsp;</div>
			<div class="ja-rs1-tr">&nbsp;</div>
		</div>
		
		<div class="ja-rs1-mid">
			<div class="ja-rs1-ml">
				<div class="ja-rs1-mr clearfix">	
					<?php foreach ($modules2 as $module) { ?>
					<?php echo ${$module['code']}; ?>
					<?php } ?>
		
				</div>			
		</div></div>
		
		<div class="ja-rs1-bot"><div class="ja-rs1-bl">&nbsp;</div><div class="ja-rs1-br">&nbsp;</div></div>
	
	</div>
	</div>

<!-- //TOP SLIDE -->

	<!-- MAIN CONTAINER -->
	<div id="ja-container" class="wrap ja-r1">
		<div class="main">	
			<div class="ja-rs2-top">
				<div class="ja-rs2-tl">&nbsp;</div>
				<div class="ja-rs2-tr">&nbsp;</div>
			</div>
			
			<div class="ja-rs2-mid">
				<div class="ja-rs2-ml">
					<div class="ja-rs2-mr clearfix">
						<div id="ja-mainbody" style="width:70%">
			<!-- CONTENT -->
							<div id="ja-main" style="width:100%">
								<div class="inner clearfix">	
									<div id="ja-contentwrap" class="ja-r1">
										<?php $size = 64;?>
										<?php foreach ($modules as $module) { ?>
										<?php
											if ($module['code'] == 'featured')
												$size = 64;
											else
												$size = 100;
										?>
											<?php echo ${$module['code']}; ?>
										<?php } ?>
										<div id="ja-content" class="column" style="width: <?php echo $size;?>%">
											<div id="ja-current-content" class="column" style="width:100%">								
												<div class="ja-content-main clearfix">
													<div class="ja-rs5-top">
														<div class="ja-rs5-tl">&nbsp;</div>
														<div class="ja-rs5-tr">&nbsp;</div>
													</div>
					
													<div class="ja-rs5-mid">
														<div class="ja-rs5-ml">
															<div class="ja-rs5-mr clearfix">
					
																<h1 class="fp-componentheading">
																	<span><strong class="first-word"><strong><?php echo $news_heading_title; ?></strong></strong></span>
																</h1>

																<div class="blog">
																<?php if ($cats_info) {
																	foreach ($cats_info as $cat_info){	
																		$articles=$cat_info['articles'];    
															    		$cats=$cat_info['cats']; ?>
													    		<?php if ($cats) {?>
																<?php for ($i = 0; $i < sizeof($cats); $i++) { ?>
																<?php if(isset($articles[$cats[$i]['cat_id']])){?>
																<?php for ($j = 0; $j < sizeof($articles[$cats[$i]['cat_id']]); $j++) { ?>
																<?php if($j==0){?>
																	<div class="article_row cols1 clearfix">
																		<div class="article_column column1" >																			
																			<div class="contentpaneopen haveimage clearfix">
																				<div class="article-image">
																					<span><img src="<?php echo $articles[$cats[$i]['cat_id']][$j]['thumb'];?>" title="<?php echo $articles[$cats[$i]['cat_id']][$j]['name'];?>" alt="" align="left" /></span>
																				</div>

																				<div class="article-main">
																					<h2 class="contentheading"><?php echo $articles[$cats[$i]['cat_id']][$j]['name'];?></h2>
																					<div class="article-tools clearfix">
																						<div class="article-meta">
																							<span class="createdate"><?php echo $articles[$cats[$i]['cat_id']][$j]['date_available'];?></span>
																							<span class="article-section">
																								<a href="<?php echo $cats[$i]['href']?>"><?php echo $cats[$i]['name'];?></a>
																							</span>
																						</div>
																					</div>
																					<div class="article-content">
																						<p><?php echo $articles[$cats[$i]['cat_id']][$j]['meta_description'];?></p>
																					</div>
																					<a href="<?php echo $articles[$cats[$i]['cat_id']][$j]['href'];?>" title="<?php echo $articles[$cats[$i]['cat_id']][$j]['name'];?>" class="readon">
																						<span>Read more</span>
																					</a>
																				</div>
																			</div>
																		</div>
																	</div>
																<?php }?><?php }?><?php }?><?php }?><?php }?><?php }?><?php }?>
																</div>
															</div>
														</div>
													</div>
													
													<div class="ja-rs5-bot">
														<div class="ja-rs5-bl">&nbsp;</div>
														<div class="ja-rs5-br">&nbsp;</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
		<!-- //CONTENT -->
						</div>
		<!-- RIGHT COLUMN-->
		<?php echo $column_right; ?>
		<!-- END RIGHT COLUMN--> 
	</div></div></div>


		
	<div class="ja-rs2-bot"><div class="ja-rs2-bl">&nbsp;</div><div class="ja-rs2-br">&nbsp;</div></div>
	
	

	</div>
	</div>
	<!-- //MAIN CONTAINER -->

	<?php foreach ($modules3 as $module) { ?>
	<?php echo ${$module['code']}; ?>
	<?php } ?>
	

<?php echo $footer; ?> 